<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>首页-稽比析</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <style>
        .layui-card-header {
            text-align: center;
            padding-top: 20px;
        }
    </style>
</head>
<body>
<div class="table-container">
    <div class="layui-card">
        <div class="layui-card-header">
            <h2>2024年总局稽查积案清理进展情况统计表</h2>
        </div>
        <table class="layui-table" id="jbxTable" lay-filter="jbxTable"></table>
    </div>
</div>
<script src="/layui/layui.js"></script>
<script src="/js/core.util.js"></script>
<script th:inline="none">
    // 获取token
    let token = CoreUtil.getData("access_token");
    // 地址栏转义token中的#号
    let tokenQuery = token.replace("#", "%23");
    let table = layui.table;
    let form = layui.form;
    let layer = layui.layer;
    let $ = jQuery = layui.jquery;
    let laydate = layui.laydate;
    let upload = layui.upload;
    let element = layui.element;
    let jbxTable;
    layui.use(['table', 'laypage', 'layer'], function () {
        // 案件列表
        jbxTable = table.render({
            elem: '#jbxTable'
            , contentType: 'application/json'
            , headers: {"authorization": token}
            , url: '/statistics/queryJbx' //数据接口
            , method: 'POST'
            , parseData: function (res) { //将原始数据解析成 table 组件所规定的数据
                console.log("res:", res)
                return {
                    "code": res.code, //解析接口状态
                    "msg": res.msg, //解析提示文本
                    "count": CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
                    "data": CoreUtil.isEmpty(res.data) ? null : res.data //解析数据列表
                }
            }
            , cols: [
                [
                    {field: 'dw', title: '单位', width: 180, align: "center"},
                    {field: 'cbze', title: '查补总额', width: 180, align: "center"},
                    {field: 'cbzzl', title: '查补增长率', width: 180, align: "center"},
                    {field: 'rkze', title: '入库总额', width: 180, align: "center"},
                    {field: 'rkzzl', title: '入库增长率', width: 180, align: "center"},
                    {field: 'xazql', title: '选案准确率', width: 180, align: "center"},
                    {field: 'rkl', title: '入库率', width: 180, align: "center"},
                    {field: 'sjl', title: '审结率', width: 180, align: "center"},
                    {field: 'rjjchs', title: '人均检查户数', width: 180, align: "center"},
                    {field: 'rjcbze', title: '人均查补总额', width: 180, align: "center"},
                    {field: 'hjcbze', title: '户均查补总额', width: 180, align: "center"},
                    {field: 'cbeywfajhs', title: '查补恶意违法案件户数', width: 180, align: "center"},
                    {field: 'cbzezh', title: '查补总额之和', width: 180, align: "center"},
                    {field: 'pjbasc', title: '平均办案时长', width: 180, align: "center"}
                ]
            ]
            , toolbar: '#toolbar'
        });
    });

</script>
</body>
</html>
